import React from 'react';
import { Row, Col } from 'antd';
import { connect } from 'react-redux';
import Header from '../../component/header/header';

import { getUserinfo } from '../../redux/user-redux';


// 首页
@ connect(state => state, {getUserinfo})
class Home extends React.Component {
    componentDidMount() {
      this.props.getUserinfo()
    }

	render() {
		return (
			<div>
        {/* 头部 */}
        <Row>
          <Col span={24}>
            <Header />
          </Col>
        </Row>
        {/* 主体 */}
        <Row className="main-conatiner">
        	<Col span={24}>
        		<section className="banner-warpper"></section>
        	</Col>
        	<Col span={16}></Col>
        	<Col span={8}></Col>
        </Row>
        {/* 底部 */}
				<Row>
         
        </Row>
			</div>
		);

	}
}

export default Home;
